package com.cloudpark.common.util;

public class Constants {

	public static final int CONST_ZERO = 0;
    public static final int CONST_ONE = 1;
    public static final int CONST_TWO = 2;
    public static final String SESSION_USER = "seesion_user";
    public static final int ENABLE = 1;
    public static final int DISABLE = 2;

    public static final String baseUrl = ReadProperties.getProperties("baseUrl");
    public static final String imagesUrl = ReadProperties.getProperties("imagesUrl");
    
    public static final String PREFIX_SLASH = "/";
    public static final String PREFIX_SLASH_ESCAPED = "\\";
    public static final String UPLOAD_IMAGES_DIR = "upload/images";
    
    /**
     * mqtt config
     */
    public static final int MQTT_QoS = 1;
    public static final String MQTT_ADDRESS = ReadProperties.getProperties("mqtt.address");
    public static final Integer MQTT_SLEEPTIMEOUT = Integer.valueOf(ReadProperties.getProperties("mqtt.sleepTimeout"));
	public static final Integer MQTT_KEEPALIVEINTERVAL = Integer.valueOf(ReadProperties.getProperties("mqtt.keepAliveInterval"));
	public static final Boolean MQTT_CLEANSESSION = Boolean.valueOf(ReadProperties.getProperties("mqtt.cleanSession"));
	public static final Boolean MQTT_RETAINED = Boolean.valueOf(ReadProperties.getProperties("mqtt.retained"));
    
	public static final String MQTT_PUBLISHER = "tdzn_publisher";
	public static final String MQTT_SUBSCRIBE = "tdzn_subscribe";
	public static final String MQTT_TOPIC_SERVER = ReadProperties.getProperties("mqtt.tdzn.server.topic");
	public static final String MQTT_TOPIC_CLIENT = ReadProperties.getProperties("mqtt.tdzn.client.topic");
	
	public static final Boolean MQTT_TEST_ENV = Boolean.valueOf(ReadProperties.getProperties("test.env"));
	
	public static final Integer SUBSCRIBE = 1;  // 订阅
	public static final Integer UNSUBSCRIBE = 2;  // 取消订阅
	
	public static final int OK = 1;
	public static final int SUCCESS = 1;
	public static final int FAIL = 2;
	public static final int PROMPT = 0;
	
	/**
	 * 业务类型
	 */
	public static final String PAY_QUERY_VEHICLE = "pay.queryvehiclebyplate";   // 查询车辆入场记录
	public static final String PAY_QUERY_FEE = "pay.queryfeebyplate";   // 查询车辆缴费金额
	public static final String PAY_PARKING_FEE_ORDER = "pay.payparkingfeeorder";   // 停车订单, 支付成功通知停车场(移动支付)
	public static final String PAY_QUERY_MONTH_CARD = "pay.querymonthcardlist";   // 查询月卡列表
	public static final String PAY_QUERY_MONTH_ORDER_LIST = "pay.querymonthcardorderlist";  // 查询月卡订单列表
	public static final String PAY_MONTH_CARD_ORDER = "pay.paymonthcardorder";    // 月卡充值订单, 支付成功通知停车场(移动支付)
	public static final String SYNC_PARKING_IN_RECORD = "sync.enter.in.record";  // 入场纪录
	public static final String SYNC_PARKING_OUT_RECORD = "sync.leave.out.record"; // 出场纪录(携带订单信息)
	
	
	// 暂停用
	public static final String SYNC_PARKING_FEE_ORDER = "sync.payparkingfeeorder"; // 停车订单, 支付成功通知云平台(非移动支付)
	public static final String CREATE_MONTH_CARD = "create.monthcard";  // 创建月卡
	public static final String SYNC_MONTH_CARD_ORDER = "sync.paymonthcardorder";  // 月卡订单, 支付成功通知云平台
	
	public static final int MQTT_STATUS_SENDIING = 1;   // 发送中
	public static final int MQTT_STATUS_SENDED = 2;   // 发送成功
	public static final int MQTT_STATUS_RECEIVED = 1;   // 收到消息
	
	public static final int MQTT_SPONSOR_CLOUDPARK = 1;  // mqtt消息发起方-云平台
	public static final int MQTT_SPONSOR_THIRD = 2;  // mqtt消息发起方-第三方业务系统
	
	// 支付方式
	public static final Integer PAY_BY_WECHAT = 1;  // 微信
	// 支付渠道
	public static final Integer PAY_CHANNEL_1 = 1;  // 移动支付
	public static final Integer PAY_CHANNEL_2 = 2;  // 非移动支付
	
	
	public static final String ORDER_CATEGORY_TC = "TC";  // 停车订单
	public static final String ORDER_CATEGORY_YK = "YK";  // 月卡订单
	
	// 车辆状态
	public static final Integer IN = 1;
	public static final Integer OUT = 2;
	
	// 默认密码6个8
	public static final String DEFAULT_PASSWORD = "888888";
	
}
